FROM zulu:21

MAINTAINER zxy

RUN mkdir -p /ai

EXPOSE 9980

ADD ./ruoyi-admin/target/ruoyi-admin.jar /ai

WORKDIR /ai

#CMD ["bash","-c","java -cp .:lib/*:cup-user.jar cup.core.system.user.UserApplication"]

ENTRYPOINT ["java", "-jar", "-Xms256m", "-Xmx1024m", "-XX:MetaspaceSize=128m", "-XX:MaxMetaspaceSize=512m", "ruoyi-admin.jar"]